Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light Pending phase refactor help with future work to deal with problem nodes #86

Merged
merged 5 commits into from
Aug 20, 2024

Conversation

vincentportella
Copy link
Member

Small PR to refactor the Pending phase to set the stage for dealing with the different kinds of problem nodes that can occur when collecting the nodes in the Pending phase. This PR does makes minimal changes to the behavior or cyclops. All tests pass as before.

Moving the check for the equilibrium timeout to the start of the Pending phase. This feels like more appropriate placement as it should run before any attempts that are made to fix the state of the nodes in kube and the cloud provider. If it reaches the time to time out then it should fail, not have another attempt at fixing things since the timeout period is long enough at 5 minutes.

@mwhittington21
Copy link
Collaborator

Looks good. The one thing I'd consider is can you think of a test to add that would capture the new behaviour, so we can verify it stays that way over time?

@vincentportella
Copy link
Member Author

@mwhittington21 I've added a new test. It succeeds when run with the changes of this PR and I've confirmed that on master the test fails as expected.

@vincentportella vincentportella merged commit 65b577a into master Aug 20, 2024
3 checks passed
@vincentportella vincentportella deleted the vportella/light-pending-phase-refactor branch August 20, 2024 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants